package cn.leftsite.netty.test.codec;

import io.netty.channel.CombinedChannelDuplexHandler;

/**
 * 通过该解码器和编码器实现参数化CombinedByteCharCodec
 * @author wangjinqiang
 * @date 2019-05-30
 */
public class CombinedByteCharCodec extends CombinedChannelDuplexHandler<ByteToCharDecoder, CharToByteEncoder> {
    /**
     * 将委托实例传递给父类
     */
    public CombinedByteCharCodec() {
        super(new ByteToCharDecoder(), new CharToByteEncoder());
    }
}
